package org.zfes.snowier.zbss.xzy.biz.device.dao;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.zfes.snowier.common.dao.mybatis.BaseMapper;
import org.zfes.snowier.core.data.ParamMap;
import org.zfes.snowier.core.data.Record;
import org.zfes.snowier.zbss.xzy.biz.device.model.GroupDevice;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface GroupDeviceMapper extends BaseMapper<GroupDevice>{
	
	Long selectListCount(ParamMap params);
	
	List<Record> selectMapListPage(ParamMap params);
	
	List<GroupDevice> selectModelListPage(ParamMap params);
	
	List<Long> selectByGroupId(@Param("groupId")Long groupId);
	
	int deleteByGroupId(@Param("groupId")Long groupId);
	
	int deleteByGroupIdAndDeviceIds(@Param("groupId")Long groupId,@Param("deviceIds")List<Long>  deviceIds);
	
	int batchInsert(@Param("groupDeviceList")List<GroupDevice> groupDeviceList);
	
	int updateStatus(@Param("id")Long id, @Param("status")Byte status);
}
